<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ScanLog extends Model
{
    public $table = 'scan_logs';

    public $fillable = [
        'env',
        'shop_id',
        'qrcode_id',
        'user_id',
    ];

    public function shop()
    {
        return $this->hasOne('App\Models\Shop');
    }

    public function qrcode()
    {
        return $this->hasOne('App\Models\Qrcode');
    }

    public function user()
    {
        return $this->belongsTo('App\User');
    }
}
